writing a polynomial given roots